package com.example.controller;

import com.example.pojo.OaPermanage;
import com.example.service.IOaPermanageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/permanage")
@CrossOrigin
public class OaPermanageController {
    @Autowired(required = false)
    IOaPermanageService oaPermanageService;

    @RequestMapping("/search")
    public java.util.List<OaPermanage> oaPermanageList(OaPermanage oaPermanage){return oaPermanageService.oaPermanageList(oaPermanage);}

    @RequestMapping("/insert")
    public int oaPermanageInsert(OaPermanage oaPermanage){return oaPermanageService.oaPermanageInsert(oaPermanage);}
}
